/*
	created time:2018/4/12
	author:Chason
	describe:要不起--(按钮)
*/
class NoRise extends eui.Component{
	public constructor() {
		 super();
		 this.skinName = "noRise";
	}
	private  stageWidth=egret.MainContext.instance.stage.stageWidth;
	private  stageHeight=egret.MainContext.instance.stage.stageHeight;


	protected childrenCreated(): void {
        super.childrenCreated();
        this.init();
    }
	public init():void{
		this.touchEnabled=true;
		this.y=Basic.meBtnInitY(this.stageHeight);
		this.x=this.stageWidth/2;
		this.anchorOffsetX=74;
		this.anchorOffsetY=25;
		Basic.touchScaleBtn(this);
	}


	//单例模式
	public static NoRise:NoRise;
	public static getInstance():NoRise{	
		if(!this.NoRise){
			this.NoRise=new NoRise();
		}
		return this.NoRise;
	}
}